package com.itshare.video.common.aop.xss.annontation;

import java.lang.annotation.*;

/**
 * @Author lyr
 * @create 2020/11/3 22:55
 */

@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Target({ElementType.FIELD,ElementType.PARAMETER,ElementType.METHOD,ElementType.PACKAGE,ElementType.TYPE})
public @interface CleanXSS {
    type type() default type.EscapeALL;


    public static enum type{
        //普通转义,HTML和 js转义
        EscapeALL,
        //先移除可以的 script标签， 对于一些富文本需求的来说
        RemoveScriptThenEscape
    }
}
